package showtime.framework.events
{
	import flash.events.Event;

	public class BaseEvent extends Event
	{
		private var _data:Object = null;
		
		public function BaseEvent(type:String, data:Object = null, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);
			
			_data = data;
			
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		public function set data(data:Object):void
		{
			_data = data;	
		}
		
		/**
		 * Deep clone event object. 
		 * @return 
		 * 
		 */		
		override public function clone():Event
		{
			return new BaseEvent(type, _data, bubbles, cancelable);
		}
	}
}